<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/3/8
  Time: 13:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>回复</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="renderer" content="webkit">
    <link href="${pageContext.request.contextPath}/static/css/common.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/plugins/bootstrap-3.3.5/css/bootstrap.min.css"
          rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/plugins/font-awesome-4.3.0/css/font-awesome.min.css"
          rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/plugins/select2-4.0.0/dist/css/select2.min.css"
          rel="stylesheet"/>
    <script src="${pageContext.request.contextPath}/static/js/jquery-1.11.3.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/plugins/bootstrap-3.3.5/js/bootstrap.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/plugins/select2-4.0.0/dist/js/select2.min.js"></script>
</head>
<body>
<div class="col-sm-12">
        <div style="margin: 2em 0 0 0;">
            <font style="font-size: 1.5em;" id="f1">亲爱的住户您好，已经收到您的报修需求，水电工师傅王力，手机号15158116634，将会在12月12日-12月13日上门为您服务。</font>
            <font style="font-size: 1.5em;float: right;margin-top: 1em;" id="f2">2016/12/12  16:00</font>
        </div>
        

</div>

<script type="text/javascript">
$(function () {
	if('${map}' != null){
// 		var type="";
// 		switch ('${map.type}') {
// 		case '1':
// 			type="水电工";
// 			break;
// 		}
		var arrStarTime = '${map.starttime}'.split("-");
		var arrEndTime = '${map.endtime}'.split("-");
		$("#f1").html("亲爱的住户您好，已经收到您的报修需求，${map.cname}师傅，手机号${map.tel},将会在"+arrStarTime[1]+"月"+arrStarTime[2]+"日-"+arrEndTime[1]+"月"+arrEndTime[2]+"日上门为您服务。");
		$("#f2").html("${map.replyTime}");
	}
})
</script>
</body>
</html>
